﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Axis.BusinessObject.Core;

namespace Axis.Web.Master
{
    public partial class Main2Column : System.Web.UI.MasterPage
    {
        CMemberList member = new CMemberList();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["MEMBERINFO"] != null)
                member = Session["MEMBERINFO"] as CMemberList;

            HttpCookie myCookie = new HttpCookie("MemberID");
            DateTime now = DateTime.Now;
            myCookie.Value = member.ID.ToString();
            // Set the cookie expiration date.
            myCookie.Expires = now.AddDays(7);
            myCookie.Path = "/";
            // Add the cookie.
            Response.Cookies.Add(myCookie);
        }
    }
}